class MotionType:
	def __init__(self, name, movementCost={'mine':1,'HQ':1,'city':1,'base':1,'airport':1,'port':1,'plain':1,'road':1,'mountain':1,'forest':1,'shoal':1,'water':1,'reef':1}):
		self.name=name
		#self.acceptableLandTypes=acceptableLandTypes
		self.movementCost=movementCost
		return

	def getName(self):
		return(self.name)
	def getCostOf(self,ltype):
		#print(''.join(['Is ',ltype,' in ', str(self.movementCost.keys()),'?']))
		if(ltype in self.movementCost.keys()):
			return(self.movementCost[ltype])
		else:
			return(None)
	
	def __repr__(self):
		return(''.join(['(name=',str(self.name),', movementCost=',str(self.movementCost),')']))
